package com.javasm.springmybatis.service.impl;

import com.javasm.springmybatis.entity.Admin;
import com.javasm.springmybatis.mapper.AdminMapper;
import com.javasm.springmybatis.service.IAdminService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whl
 * @since 2021-11-08
 */
@Service
@Transactional
public class AdminServiceImpl  implements IAdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public List<Admin> selectList() {
        return adminMapper.selectList();
    }
}
